const express=require('express')
const app=express()

//在所有接口前设置 处理post请求参数的中间件
app.use( express.json() );
app.use( express.urlencoded({extended:false}) );

const router=require('./router/user.js')

app.use(express.static('static'))


app.use('/user',router)
app.listen(8080,()=>{
    console.log('http://127.0.0.1:8080')
})